package com.wn.class30.service.impl;

import com.wn.class30.entity.Aboutus;
import com.wn.class30.mapper.AboutusDao;
import com.wn.class30.service.AboutusService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.Map;

@Service
public class AboutusServiceImpl implements AboutusService {
    @Resource
    private AboutusDao aboutusDao;
    @Override
    public Aboutus selectAboutusById() throws Exception {
        return aboutusDao.selectByPrimaryKey(1);
    }

    @Override
    public void updateAboutusById(Aboutus aboutus) throws Exception {
        aboutusDao.updateByPrimaryKeySelective(aboutus);
    }
}
